/**
* @file SyncStatusTask.h
* @brief
* watchdog状态同步类（目前不需要了）
* 
* @author Wang haoyu
* @email 136046355@qq.com
*/
#ifndef __SYNCSTATUSTASK_H__
#define __SYNCSTATUSTASK_H__

#include <string>

#include "common/comm/BaseTask.h"

const uint32_t WATCHDOG_INIT = 1;
const uint32_t WATCHDOG_SENDING = 2;
const uint32_t WATCHDOG_WAITING = 3;
const uint32_t WATCHDOG_RECORDING = 4;
const uint32_t WATCHDOG_ACK = 5;
const uint32_t WATCHDOG_FINISH = 10;

class SyncStatusTask : public BaseTask {
  private:
    int state_;
    std::string data_;
  public:
    SyncStatusTask(/* args */);
    ~SyncStatusTask();

    int goNext();
    void recvWorkItem( ThreadPoolWorkItem* );

    void setData(const std::string &);
};

#endif // __SYNCSTATUSTASK_H__